<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>Fluency Questionnaire Survey - Speaking Practice</title>
    <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" />
    <style>
      body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        background-color: #fff;
        color: #333;
      }

      .dark body {
        background-color: #1a1a1a;
        color: #f5f5f5;
      }

      /* 进度条样式 */
      .progress-container {
        height: 4px;
        width: 100%;
        background-color: #f0f0f0;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
      }

      .progress-bar {
        height: 100%;
        background-color: #007aff;
        width: 45%; /* 8步，第4步 */
      }

      .dark .progress-container {
        background-color: #333;
      }

      /* 顶部导航 */
      .top-nav {
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }

      .back-btn {
        color: #007aff;
        font-size: 1.25rem;
        cursor: pointer;
      }

      /* 内容区域 */
      .content {
        max-width: 500px;
        margin: 0 auto;
        padding: 1rem;
      }

      /* 图片容器 */
      .image-container {
        width: 100%;
        margin: 1.5rem auto;
        position: relative;
        background-color: #fff;
        border-radius: 12px;
        overflow: hidden;
        min-height: 450px;
      }

      /* 对话气泡 */
      .speech-bubble {
        position: absolute;
        padding: 12px 18px;
        border-radius: 20px;
        background-color: #f0f2f5;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        font-size: 17px;
        font-weight: 500;
        color: #333;
        z-index: 10;
        line-height: 1.4;
      }

      .bubble-right {
        right: 30px;
        top: 230px;
        background-color: #e7f1ff;
        padding-right: 22px;
        max-width: 220px;
      }

      .bubble-left {
        left: 30px;
        bottom: 90px;
        background-color: #fff;
        padding-left: 22px;
        max-width: 160px;
      }

      /* 模拟真实图片的效果 */
      .real-image {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
      }

      /* 网格背景 */
      .grid-background {
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(#e5e7eb 1px, transparent 1px),
          linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
        background-size: 40px 40px;
        opacity: 0.3;
      }

      /* 图标样式 */
      .app-icon {
        position: absolute;
        border-radius: 50%;
        background-color: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 5;
      }

      .fluenty -icon {
        left: 40px;
        top: 100px;
        width: 90px;
        height: 90px;
      }

      .fluenty -icon .inner {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background-color: #007aff;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        font-weight: bold;
        position: relative;
        overflow: hidden;
      }

      .fluenty -icon .inner::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 30px;
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        bottom: 10px;
        right: 10px;
      }

      .video-icon {
        right: 40px;
        top: 100px;
        width: 70px;
        height: 70px;
      }

      .video-icon .inner {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .video-icon .inner i {
        color: #0a66c2;
        font-size: 24px;
      }

      /* 中间的人物 */
      .person {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -45%);
        width: 280px;
        height: 350px;
      }

      /* 人物形象 - 使用CSS创建 */
      .person-head {
        position: absolute;
        width: 120px;
        height: 150px;
        background-color: #fee2d5;
        border-radius: 60px 60px 60px 60px;
        left: 80px;
        top: 30px;
        z-index: 2;
      }

      .person-hair {
        position: absolute;
        width: 140px;
        height: 170px;
        background-color: #be5c30;
        border-radius: 70px 70px 40px 40px;
        left: 70px;
        top: 0;
        z-index: 1;
      }

      .person-hair::before {
        content: '';
        position: absolute;
        width: 100px;
        height: 160px;
        background-color: #be5c30;
        right: -30px;
        top: 50px;
        border-radius: 0 70px 20px 50px;
        transform: rotate(10deg);
      }

      .person-hair::after {
        content: '';
        position: absolute;
        width: 100px;
        height: 120px;
        background-color: #be5c30;
        left: -30px;
        top: 50px;
        border-radius: 70px 0 50px 20px;
        transform: rotate(-10deg);
      }

      .person-face {
        position: absolute;
        z-index: 3;
      }

      .person-eye-left {
        position: absolute;
        width: 12px;
        height: 5px;
        background-color: #333;
        border-radius: 50%;
        left: 100px;
        top: 70px;
        transform: rotate(5deg);
      }

      .person-eye-right {
        position: absolute;
        width: 12px;
        height: 5px;
        background-color: #333;
        border-radius: 50%;
        left: 170px;
        top: 70px;
        transform: rotate(-5deg);
      }

      .person-smile {
        position: absolute;
        width: 60px;
        height: 30px;
        border-bottom: 3px solid #333;
        border-radius: 50%;
        left: 110px;
        top: 100px;
      }

      .person-body {
        position: absolute;
        width: 140px;
        height: 180px;
        background-color: #d6e4ff;
        left: 70px;
        top: 170px;
        border-radius: 40px 40px 0 0;
        z-index: 1;
      }

      .person-collar {
        position: absolute;
        width: 70px;
        height: 20px;
        background-color: #f8fafc;
        left: 105px;
        top: 180px;
        z-index: 2;
      }

      .person-arm-left {
        position: absolute;
        width: 50px;
        height: 120px;
        background-color: #d6e4ff;
        left: 50px;
        top: 210px;
        border-radius: 20px;
        transform: rotate(15deg);
        z-index: 0;
      }

      .person-arm-right {
        position: absolute;
        width: 50px;
        height: 120px;
        background-color: #d6e4ff;
        right: 50px;
        top: 210px;
        border-radius: 20px;
        transform: rotate(-15deg);
        z-index: 0;
      }

      .person-phone {
        position: absolute;
        width: 50px;
        height: 90px;
        background-color: #333;
        left: 115px;
        top: 230px;
        border-radius: 8px;
        z-index: 3;
      }

      .person-phone::after {
        content: '';
        position: absolute;
        width: 40px;
        height: 80px;
        background-color: #f5f5f5;
        left: 5px;
        top: 5px;
        border-radius: 4px;
      }

      /* 信息卡片 */
      .info-card {
        background-color: #f0f8ff;
        border-radius: 16px;
        padding: 2rem;
        margin: 1.5rem 0;
        text-align: center;
        font-size: 1.1rem;
        line-height: 1.6;
        color: #1a365d;
      }

      .dark .info-card {
        background-color: #172a46;
        color: #e2e8f0;
      }

      /* 按钮样式 */
      .btn-primary {
        background-color: #007aff;
        color: white;
        padding: 0.75rem 1.5rem;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        width: 100%;
        justify-content: center;
        border: none;
        font-size: 1.2rem;
      }

      .btn-primary:hover {
        background-color: #0062cc;
      }

      /* 主题切换按钮 */
      .theme-toggle {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #007aff;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1000;
      }

      .theme-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
      }
      .nav-progress-container {
        display: flex;
        align-items: center;
        margin-bottom: 40px;
        gap: 15px;
      }

      .back-button {
        width: 30px;
        height: 30px;
        border: none;
        background: none;
        cursor: pointer;
        color: #2b85e4;
        font-size: 20px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .back-button svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
      }

      .progress-bar {
        flex: 1;
        height: 6px;
        width: 423px;
        background-color: #e0e0e0;
        border-radius: 3px;
      }

      .progress {
        height: 100%;
        width: 39.96%;
        background-color: #2b85e4;
        border-radius: 3px;
      }
    </style>
    <script>
      // 检查深色模式
      function checkDarkMode() {
        if (
          localStorage.getItem('darkMode') === 'true' ||
          (localStorage.getItem('darkMode') === null && window.matchMedia('(prefers-color-scheme: dark)').matches)
        ) {
          document.documentElement.classList.add('dark')
          return true
        }
        return false
      }

      // 切换深色/浅色模式
      function toggleDarkMode() {
        if (document.documentElement.classList.contains('dark')) {
          document.documentElement.classList.remove('dark')
          localStorage.setItem('darkMode', 'false')
          document.getElementById('theme-icon').className = 'fas fa-moon'
        } else {
          document.documentElement.classList.add('dark')
          localStorage.setItem('darkMode', 'true')
          document.getElementById('theme-icon').className = 'fas fa-sun'
        }
      }

      // 当DOM加载完成
      document.addEventListener('DOMContentLoaded', function () {
        const isDark = checkDarkMode()
        document.getElementById('theme-icon').className = isDark ? 'fas fa-sun' : 'fas fa-moon'

        // 下一步按钮事件
        document.getElementById('continue-btn').addEventListener('click', function () {
          // 跳转到下一个页面
          window.location.href = 'iDont.html'
        })
      })
    </script>
  </head>
  <body>
    <!-- 主内容区 -->
    <div class="content">
      <div class="nav-progress-container">
        <button class="back-button" onclick="window.location.href='/howWould.html'">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
            <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" />
          </svg>
        </button>
        <div class="progress-bar">
          <div class="progress"></div>
        </div>
      </div>
      <!-- 图片区域 -->
      <div class="image-container">
        <!-- 网格背景 -->
        <div class="grid-background"></div>

        <!-- fluenty  App 图标 -->
        <div class="app-icon fluenty -icon">
          <div class="inner">L</div>
        </div>
        <img src="./imgs/conflict.png" />
      </div>

      <!-- 信息卡片 -->
      <div class="info-card">
        Speaking can be intimidating, but with fluenty , you can practice in a safe space. Gain the confidence you need
        at your own pace, without the pressure of others watching.
      </div>

      <!-- 继续按钮 -->
      <button id="continue-btn" class="btn-primary">Continue</button>
    </div>

    <!-- 主题切换按钮 -->
    <div class="theme-toggle" onclick="toggleDarkMode()">
      <i id="theme-icon" class="fas fa-moon"></i>
    </div>
  </body>
</html>
